﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    ///删除阿里云推送appkey
    /// yun.im.aliyun.push.appkey.delete
    /// </summary>
    public class DeleteAliyunAppKeyRequest : ITopRequest<BoolResultResponse>
    {
        /// <summary>
        /// app应用ID
        /// </summary>
        public int AppId { get; set; }
         

        public void Validate()
        {
            RequestValidator.ValidateRequired("appid", AppId); 
        }

        public string GetApiName()
        {
            return "yun.im.aliyun.push.appkey.delete";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"appid", AppId} 
            };

            return parameters;
        }


    }
}
